import {ApiFetch} from "../api/apiHandler";
import {BaseUrl} from "../constant/constant";

class AuthModel {
    constructor() {
        this.url = BaseUrl
    }

    login(params) {
        let end = this.url + 'login'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default AuthModel
